-- background: 97850 from stack: in -- bmap block id: 98154 -- flags: 0000 -- background id: 0 -- name: 2.4.1 Practice6 ----- HyperTalk script ----- on openCard global answerTracker send mouseUp to bg btn "done" put line (line 2 of fld "key") of answerTracker into theLocs if theLocs is not empty then repeat with i = 1 to number of lines in fld "origins" get item (i*2 - 1) to (i*2) of theLocs set the loc of bg btn ("graphic" & i) to it end repeat else repeat with j = 1 to number of lines in fld "origins" set the loc of bg btn ("graphic" & j) to (line j of fld "origins") end repeat end if pass openCard end openCard on closeCard global answerTracker get line 2 of fld "key" -- says which line of global to worry about put empty into line it of answerTracker repeat with i = 1 to number of lines in fld "origins" put the loc of bg btn ("graphic" & i) & "," after line it of answerTracker end repeat delete last char of line it of answerTracker pass closeCard end closeCard on moveButton get fld "decisions" repeat until the mouse is up if item 2 of the mouseLoc > line 1 of it then set the loc of the target to the mouseLoc end repeat put the loc of the target into temp if item 1 of the loc of the target > (line 2 of it) then if item 2 of the loc of the target < (line 3 of it) then validate (line 1 of fld "destinations") else if item 2 of the loc of the target < (line 4 of it) then validate (line 2 of fld "destinations") else if item 2 of the loc of the target < (line 5 of it) then validate (line 3 of fld "destinations") else if item 2 of the loc of the target < (line 6 of it) then validate (line 4 of fld "destinations") else validate (line 5 of fld "destinations") end if if the loc of the target = temp then set the loc of the target to line (last char of the short name of the target) of fld "origins" end moveButton on validate where repeat with i = 1 to number of lines in fld "origins" if the short name of the target = ("graphic" & i) then next repeat if the loc of bg btn ("graphic" & i) = where then exit validate end repeat set the loc of the target to where end validate on hideFeedback lock screen hide fld "Feedback1" hide fld "Feedback2" hide fld "Feedback3" hide fld "Feedback4" hide fld "Feedback5" hide fld "CorrectAnswer" hide fld "MasterFeedback" hide bg btn "Done" unlock screen end hideFeedback on showFeedback lock screen show fld "Feedback1" show fld "Feedback2" show fld "Feedback3" show fld "Feedback4" show fld "Feedback5" show fld "CorrectAnswer" show fld "MasterFeedback" show bg btn "Done" unlock screen end showFeedback -- part 3 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=18 top=1 right=38 bottom=442 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 24 -- style flags: 10240 -- line height: 32 -- part name: Title -- part 14 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=443 top=5 right=72 bottom=512 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Instant Reference ----- HyperTalk script ----- on mouseUp instantReference "2.4.1" end mouseUp -- part 15 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=480 top=143 right=172 bottom=511 -- title width / last selected line: 0 -- icon id / first selected line: 1310 / 1310 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Student Services ----- HyperTalk script ----- on mousedown SSpopUp end mousedown on mouseup if the mouseloc is not within the rect of me then exit to hyperCard doSS end mouseup -- part 16 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=482 top=176 right=205 bottom=511 -- title width / last selected line: 0 -- icon id / first selected line: 162 / 162 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Help ----- HyperTalk script ----- on mouseUp Help end mouseUp -- part 17 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=482 top=294 right=320 bottom=509 -- title width / last selected line: 0 -- icon id / first selected line: 1236 / 1236 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Last Menu ----- HyperTalk script ----- on mouseUp go cd "Network Services P/1" end mouseUp -- part 18 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=478 top=319 right=341 bottom=498 -- title width / last selected line: 0 -- icon id / first selected line: 1238 / 1238 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Prev ----- HyperTalk script ----- on mouseUp lock screen go prev unlock screen with scroll right end mouseUp -- part 19 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=493 top=319 right=341 bottom=512 -- title width / last selected line: 0 -- icon id / first selected line: 1237 / 1237 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Next ----- HyperTalk script ----- on mouseUp lock screen go next unlock screen with scroll left end mouseUp -- part 20 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=16 top=38 right=65 bottom=437 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 20 -- style flags: 0 -- line height: 26 -- part name: Subtitle -- part 21 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=16 top=68 right=88 bottom=470 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 256 -- line height: 15 -- part name: Instruction -- part 22 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=161 top=95 right=132 bottom=472 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Item1 -- part 23 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=161 top=138 right=175 bottom=472 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Item2 -- part 24 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=161 top=183 right=219 bottom=472 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Item3 -- part 25 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=161 top=228 right=265 bottom=472 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Item4 -- part 26 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=161 top=274 right=311 bottom=472 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Item5 -- part 28 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=20 top=185 right=217 bottom=53 -- title width / last selected line: 0 -- icon id / first selected line: 832 / 832 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Graphic1 ----- HyperTalk script ----- on mouseDown moveButton end mouseDown -- part 30 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=20 top=275 right=307 bottom=53 -- title width / last selected line: 0 -- icon id / first selected line: 10453 / 10453 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Graphic3 ----- HyperTalk script ----- on mouseDown moveButton end mouseDown -- part 31 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=20 top=98 right=130 bottom=53 -- title width / last selected line: 0 -- icon id / first selected line: 13560 / 13560 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Graphic4 ----- HyperTalk script ----- on mouseDown moveButton end mouseDown -- part 32 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=20 top=141 right=173 bottom=53 -- title width / last selected line: 0 -- icon id / first selected line: 6758 / 6758 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Graphic5 ----- HyperTalk script ----- on mouseDown moveButton end mouseDown -- part 35 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=8 top=36 right=94 bottom=231 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Feedback1 -- part 43 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=8 top=97 right=155 bottom=231 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Feedback2 -- part 37 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=8 top=159 right=216 bottom=231 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Feedback3 -- part 38 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=8 top=219 right=277 bottom=231 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Feedback4 -- part 40 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=8 top=280 right=338 bottom=231 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: CorrectAnswer -- part 41 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=147 top=132 right=304 bottom=356 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: MasterFeedback -- part 39 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=238 top=32 right=89 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 16 -- style flags: 0 -- line height: 17 -- part name: Feedback5 -- part 42 (button) -- low flags: 80 -- high flags: A002 -- rect: left=215 top=279 right=296 bottom=284 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Done ----- HyperTalk script ----- on mouseUp lock screen hide fld "MasterFeedback" hide bg btn "Done" unlock screen end mouseUp -- part 5 (field) -- low flags: 81 -- high flags: 0001 -- rect: left=423 top=0 right=13 bottom=466 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 4 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: CardTitle -- part 44 (button) -- low flags: 00 -- high flags: A004 -- rect: left=268 top=321 right=340 bottom=413 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Answer ----- HyperTalk script ----- on mouseUp send mouseUp to bg btn "done" repeat with i = 1 to number of lines in fld "origins" set the loc of bg btn ("graphic" & i) to (line i of fld "origins") end repeat put line 1 of fld "key" into theLocs repeat with i = 1 to number of lines in fld "origins" get item (i*2 - 1) to (i*2) of theLocs set the loc of bg btn ("graphic" & i) to it end repeat end mouseUp -- part 53 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=482 top=208 right=234 bottom=509 -- title width / last selected line: 0 -- icon id / first selected line: 1234 / 1234 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Lesson ----- HyperTalk script ----- on mouseUp lesson "2.4.1" end mouseUp -- part 54 (button) -- low flags: 00 -- high flags: A004 -- rect: left=68 top=321 right=340 bottom=213 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Check Answer ----- HyperTalk script ----- on mouseUp lock screen set cursor to watch put empty into theList get line 1 of fld "key" repeat with i = 1 to (number of items in it)/2 put item (i*2 - 1) of it & "," & item (i*2) of it into theLoc if the loc of bg btn ("graphic" & i) = theLoc then put "t," after theList else put "f," after theList end repeat delete last char of theList if theList = "t,t,t,t,t" then put fld "feedback1" into fld "MasterFeedback" else put fld "feedback2" into fld "MasterFeedback" show fld "MasterFeedback" show bg btn "Done" unlock screen end mouseUp -- part 55 (field) -- low flags: 81 -- high flags: 0002 -- rect: left=0 top=0 right=99 bottom=81 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: origins -- part 56 (field) -- low flags: 81 -- high flags: 0002 -- rect: left=85 top=0 right=99 bottom=166 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: destinations -- part 57 (field) -- low flags: 81 -- high flags: 0002 -- rect: left=174 top=0 right=99 bottom=255 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: decisions -- part 59 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=20 top=231 right=263 bottom=53 -- title width / last selected line: 0 -- icon id / first selected line: 12010 / 12010 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Graphic2 ----- HyperTalk script ----- on mouseDown moveButton end mouseDown -- part 58 (field) -- low flags: 81 -- high flags: 0002 -- rect: left=0 top=100 right=135 bottom=288 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: key